package com.game.message.task;


import com.game.message.Msg;
import com.game.mongo.UserMongo;
import io.netty.channel.ChannelHandlerContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public abstract class  AbstractDubboProcessor implements IProcessor {
	@Autowired
	protected UserMongo userMongo;
	public Msg process(Msg msg, ChannelHandlerContext ctx) throws Exception {
		return process(msg, msg.getUserId());
	}

	public abstract Msg process(Msg msg, int userId);
}
